package com.hjwoo.app.net;

import android.app.Dialog;
import android.content.Context;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.widget.ImageView;

import com.hjwoo.app.R;

/**
 * Created by yangchuan on 2016/6/7.
 */
public class NetWaitBox extends Dialog
{
    private ImageView         netimage;
    private AnimationDrawable animationDrawable;

    public NetWaitBox(Context context, int themeResId)
    {
        super(context, themeResId);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.net_waitbox);
        netimage = (ImageView) findViewById(R.id.dialog_image);
        netimage.setImageResource(R.drawable.progress_anidialog);
        animationDrawable = (AnimationDrawable) netimage.getDrawable();
        animationDrawable.start();
    }
}
 
